/*
 * Ex14.h
 *
 *  Created on: Oct 10, 2013
 *      Author: Administrator
 */

#ifndef EX14_H_
#define EX14_H_
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
class Ex14 {
	string name;
	static int id ;
public:
	Ex14();
	virtual ~Ex14();
	string getName()
	{
		return name;
	}

	Ex14(string name){

		this->name = name.append(to_string(static_cast<long long>(id)));
		id++;
	}
	friend ostream& operator << (ostream& os, const Ex14& e);
	Ex14& operator=(Ex14 a);

	void print(ostream& os)
	{
		os << name<<endl;
	}
};



#endif /* EX14_H_ */
